<template>
  <div>
    <van-goods-action>
  <van-goods-action-icon icon="chat-o" text="客服" dot />
  <van-goods-action-icon icon="cart-o" text="购物车" badge="5" />
  <van-goods-action-icon icon="shop-o" text="店铺" badge="12" />
  <van-goods-action-button  type="warning" text="加入购物车" @click="shopping()" />
  <van-goods-action-button type="danger" text="立即购买" />
</van-goods-action>
  </div>
</template>

<script>
export default {
    methods:{
        shopping() {
 this.$router.push("/cart");
 this.$http({
     url: " http://localhost:3000/cart",
     method: "post",
     data: {
       sell: "满10减10",
       src: "https://hshopb.honorfile.com/pimages/product/6973316858761/428_428_0D9DE3D248C14748E32C825708FDF74A4DF368A7ED7F3F3Cmp.png",
       name: "荣耀 Magic 悬浮键盘",
       pz: "深灰色",
       activeO: "一站式换新",
       activeT: "积分红包",
       price: "799",
       num: "1",
     },
    });
  },
    }
}
</script>

<style scoped>

</style>